package leecode

import (
	"strconv"
)

func findKthNumber(k int) int {
	var str string
	index := 0
	for len(str) <= k {
		temp := strconv.Itoa(index)
		str += temp
		index++
	}
	bStr := []byte(str)
	return int(bStr[k] - 48)
}
